package Class;

import java.sql.*;

public class ConnectDatabase {

	//connecting to database
	public static Connection connection;
	

	public static void connection()
    {
        try
        {
        	//System.out.println("Loaded driver1");
            Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
            System.out.println("Loaded driver");
            connection = DriverManager.getConnection("jdbc:sqlserver://localhost:1433;databaseName=CourierDatabase;user=sa;password=8651495");
            System.out.println("Got connection");
        }
        catch (Exception ex) {}
    }
}
